# Contributor: Stacy Harper <contact@stacyharper.net>
# Maintainer: Stacy Harper <contact@stacyharper.net>
pkgname=kiln
pkgver=0.3.1
pkgrel=0
pkgdesc="Simple static site generator for Gemini sites"
url="https://git.sr.ht/~adnano/kiln"
arch="all"
license="GPL-3.0-only"
makedepends="go scdoc"
subpackages="$pkgname-doc"
options="!check"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~adnano/kiln/archive/$pkgver.tar.gz
	"

build() {
	make VERSION=$pkgver
}

package() {
	install -Dm755 "$builddir"/$pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 "$builddir"/docs/*.1 -t "$pkgdir"/usr/share/man/man1

	cp -a "$builddir"/templates "$pkgdir"/usr/share/$pkgname
}

sha512sums="
ce0b890e3147f8a35e21529e2d2f234070c4b792106ff81a287c3855e0a1aad1a2b02ca918d25c5b55fc05b27b0c55802ead563cfe36becab5ebb3b7ebd39ea4  kiln-0.3.1.tar.gz
"
